﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Book
    {
        internal int bookid;
        internal int bookprice;
        internal String bookname;
        public int price { get { return bookprice; } set { value = bookprice; } }
        public void SetupBookInfo(int bookid, int bookprice, String bookname)
        {
            this.bookid = bookid;
            this.bookprice = bookprice;
            this.bookname = bookname;
           
        }
        public void InputBookany()
        {
            Console.WriteLine("书的ID:{0} 书的价格:{1} 书的名字:{2}", this.bookid, this.bookprice, this.bookname);
        }
    }
}
